package com.video.manage.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@TableName(value = "video")
public class VideoEntity implements Serializable{

    /**
    * id
    */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 名称
     */
    private String title;


    /**
     * 内容
     */
    private String content;


    private String url;

    private Integer type;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private Integer cTotal;

    private Integer sTotal;

    private Integer pTotal;

    @TableField(exist = false)
    private List<EnjoyCollectionEntity> enjoyList;



}